import App from './App'

import Cfg from '@/common/config.js'
import Cry from '@/common/crypto.js'
import Upd from '@/common/upgrade.js'
import Msg from '@/common/message.js'
import Net from '@/common/request.js'
import Nav from '@/common/navigation.js'
import Tp from '@/common/image-tools.js'
import Utils from "./utils/util"






// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false


Vue.prototype.Cfg = Cfg;//配置相关
Vue.prototype.Cry = Cry;//加密相关
Vue.prototype.Upd = Upd;//更新相关
Vue.prototype.Msg = Msg;//提示相关
Vue.prototype.Net = Net;//网络相关
Vue.prototype.Nav = Nav;//页面切换相关
Vue.prototype.Tp = Tp;	//图片工具
Vue.prototype.utils = Utils; //加载工具


App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif